//
//  UserCell.m
//  Product_NEWS
//
//  Created by dllo on 16/1/11.
//  Copyright © 2016年 FCH. All rights reserved.
//

#import "UserCell.h"
#import "NightModeHandle.h"
@interface UserCell ()


@end

@implementation UserCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
      
        [self.contentView addSubview:self.headImageView];
        [self.contentView addSubview:self.title];
    }
    return self;
}



-(UIImageView *)headImageView
{
    if (!_headImageView) {
          self.headImageView = [[[UIImageView alloc]initWithFrame:CGRectMake(0, 10 * SCREEN_HEIGHT, 30 * SCREEN_WIDTH, 30* SCREEN_HEIGHT)]autorelease];
    }
    
    return [[_headImageView retain]autorelease];
  
}


-(UILabel *)title
{
    if (!_title) {
        self.title  = [[[UILabel alloc]initWithFrame:CGRectMake(45 * SCREEN_WIDTH, 15 * SCREEN_HEIGHT, 80* SCREEN_WIDTH, 15* SCREEN_HEIGHT)]autorelease];
        self.title.textColor = [NightModeHandle shareNightModeHandle].titleColor;
        self.title.font = [UIFont systemFontOfSize:17*SCREEN_WIDTH];
    }
    return [[_title  retain]autorelease];
}

-(UILabel *)caCheLabel
{
    if (!_caCheLabel) {
        self.caCheLabel = [[[UILabel alloc]initWithFrame:CGRectMake(290 *SCREEN_WIDTH , 15* SCREEN_HEIGHT, 80*SCREEN_WIDTH, 20* SCREEN_HEIGHT)]autorelease];
        self.caCheLabel.textColor = [UIColor redColor];
    }
    return [[_caCheLabel retain]autorelease];
}

@end
